xen: Import cc-ifversion from Kbuild
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 4 Dec 2019 17:13:51 +0000 (17:13 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jan 2020 11:54:33 +0000 (11:54 +0000)
commit4c91ad721c80d497fde6740a9f957f66ecff2267
tree6e071f3a658d9d0d782c433d6d8c1406220dbf87
parent534519f0514f52007d504e0f2eeb714de7b2468d
xen: Import cc-ifversion from Kbuild

This is in preparation of importing Kbuild to build Xen. We won't be
able to include Config.mk so we will need a replacement for the macro
`cc-ifversion'.

This patch imports parts of "scripts/Kbuild.include" from Linux v5.4,
the macro cc-ifversion. It makes use of CONFIG_GCC_VERSION that
Kconfig now provides.

Since they are no other use of Xen's `cc-ifversion' macro, we can
remove it.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Config.mk
xen/Rules.mk
xen/common/coverage/Makefile
xen/scripts/Kbuild.include [new file with mode: 0644]